Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Calling receipt() on a tx fails #9

Merged
merged 3 commits into from
Jan 13, 2025

Conversation

mvanmeerbeck
Copy link
Contributor

Description

Calling tx.receipt() triggers this error

TypeError: Cannot convert undefined to a BigInt

Fixes # (issue)

For some reason and after debugging, the property to call should be tx.transaction_hash and not tx.hash
Perhaps something is wrong else where in the code, but this change made it work.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

Checklist

  • I have tested locally
  • I have performed a self review of my changes
  • Updated any relevant documentation
  • Linked to any relevant issues
  • I have added tests relevant to my changes
  • Any dependent changes have been merged and published in downstream modules
  • My code is up to date with the base branch
  • I have updated relevant changelogs. We suggest using chan

@jiqiang90 jiqiang90 merged commit 9d94525 into subquery:main Jan 13, 2025
2 of 3 checks passed
@jiqiang90
Copy link
Collaborator

Hi @mvanmeerbeck really appreciate for the fix, approve and merged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants